<%@ page import="java.util.*" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: zhangyiyi
  Date: 2025/3/3
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setAttribute("date",new Date());
%>
原来的日期时间：${date}<br>
<fmt:timeZone value="CCT" >
    <fmt:formatDate value="${date}" type="both" dateStyle="full" timeStyle="full" var="date1"/>
</fmt:timeZone>
设置时区为CCT后的日期时间：${date1}
</body>
</html>
